{include file='../templates/header.tpl'}
<div id="frmColumnas">
<form action="/columnas/" method="post" name="frm1">
	<h3>Buscar Columnas por Fecha:</h3>
    <label for="mes">Mes: 
    	<select name="mes">
    		{section name=mes start=1 loop=13 step=1}
			<option value="{$smarty.section.mes.index}" 
			{if $smarty.now|date_format:"%m" == $smarty.section.mes.index}selected="selected"{/if}>
				{$arrMes[$smarty.section.mes.index]}
			</option>
			{/section}
		</select>
	</label>
	<label for="ano">A&ntilde;o: 
    	<select name="ano">
    		{section name=ano start=2010 loop=$smarty.now|date_format:"%Y"+1 step=1}
			<option value="{$smarty.section.ano.index}" 
			{if $smarty.now|date_format:"%Y" == $smarty.section.ano.index}selected="selected"{/if}>
				{$smarty.section.ano.index}
			</option>
			{/section}
		</select>
	</label>						
	<input type="submit" name="submit1" value="Ver Columnas" />
</form>
</div>
<div id="resultsColumnas">
<h2 id="seccion">Columnas de Staff de MasMedio {if $ano != ""}de {$arrMes[$mes]} del {$ano}{/if}</h2>
<table align="center" width="100%" border="0" cellspacing="2" cellpadding="4">
	<tr class="resumenH">
    	<td width="25%">Fecha</td>
        <td width="75%">T&iacute;tulo</td>                    
	</tr>
	{foreach from=$arrNotas item=nota}
		<tr>
			<td class="resumenHora">{$nota['fechaPublicacion']}</td>
			<td class="resumenTitulo"><a href='/nota/{$nota['notaid']}'>{$nota['titulo']}</a><p>{$nota['descripcion']}</p></td>
		</tr>
	{/foreach}
</table>
</div>
{include file='../templates/footer.tpl'}